package com.leinao.media.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 视频下载参数
 *
 * @author zhangyu
 * @date 2022/2/8 14:39
 */
public class VideoDownloadParam extends BaseDeviceParam {

    /**
     * 通道号
     */
    private Integer channel;

    /**
     * 文件名
     */
    private String fileName;

    /**
     * 开始时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 保存路径
     */
    private String saveAddress;

    public Integer getChannel() {
        return channel;
    }

    public void setChannel(Integer channel) {
        this.channel = channel;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getSaveAddress() {
        return saveAddress;
    }

    public void setSaveAddress(String saveAddress) {
        this.saveAddress = saveAddress;
    }

    @Override
    public String toString() {
        return "VideoDownloadParam{" +
                "channel=" + channel +
                ", fileName='" + fileName + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", saveAddress='" + saveAddress + '\'' +
                '}';
    }
}
